<template id="confirmTpl">
  <div class="modal fade"  tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <!-- <span aria-hidden="true">&times;</span> -->
            关闭
          </button>
          <!-- <h4 class="modal-title">New message</h4> -->
        </div>
        <div class="modal-body">
          <form>
            <h3 class="ta-c">{{confirmMsg}}</h3>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-outline btn-primary m-r-40" data-dismiss="modal">否</button>
          <button type="button" class="btn btn-primary" @click="$emit('yes-btn')">是</button>
        </div>
      </div>
    </div>
  </div>
</template>
<script type="text/javascript">
  Vue.component('confirm', {
    template: '#confirmTpl',
    props: ['confirmMsg','delId'],
    data() {
      return {
      }
    },
    methods: {

    }
  });
</script>
